Use CRPEJob::GetNGroups to determine the number of group sections in the report.
short GetNGroups ();